<?php
@header('Content-type: text/html;charset=UTF-8');
require_once('bookmark_sum.php');
session_start();
if (db_connect()) {
	$conn=db_connect();
	$query_result=$conn->query("select * from user where username='".$_SESSION['valid_user']."'");
	if ($query_result->num_rows==1) {
		$row=$query_result->fetch_array(MYSQLI_NUM);
		do_html_user_info($row);
	} else {
		throw new Exception("连接数据库失败", 1);
	}
}
?>